import request from "@/utils/request";

export default {
  /**
   * 更新错题记录
   * @returns
   */
  addWrongRecord(wrongItems, selectedId) {
    wrongItems = wrongItems ? wrongItems : "-1";
    return request({
      url: `/wrongRecord/addWrongRecord/${wrongItems}/${selectedId}`,
      method: "post",
    });
  },
  deleteByQuestionId(questionId) {
    return request({
      url: `/wrongRecord/deleteByQuestionId/${questionId}`,
      method: "delete",
    });
  },
};
